Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tests/legacy): relax json string requirement #61

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

LucaGuerra
Copy link
Contributor

The TestFalco_Legacy_StdoutOutputJsonStrict was checking if the output contained specific json strings that needed to match character by character. This PR changes it so that it requires only that the json object are equivalent even if the strings are different (e.g. same properties printed in different order)

Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link

poiana commented Aug 30, 2024

LGTM label has been added.

Git tree hash: ad1fb18971f97f384b9af21aba5f4fc167269c29

@poiana
Copy link

poiana commented Aug 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, LucaGuerra

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Andreagit97,LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Andreagit97
Copy link
Member

/hold

@Andreagit97
Copy link
Member

not sure if you want to merge it now, unhold it if yes

@LucaGuerra
Copy link
Contributor Author

/unhold

@poiana poiana merged commit d259272 into falcosecurity:main Aug 30, 2024
3 checks passed
@LucaGuerra LucaGuerra deleted the fix/legacy-json-less-strict branch August 30, 2024 08:18
@LucaGuerra
Copy link
Contributor Author

Thanks @Andreagit97 , the current Falco master passes with these modifications so this can already be merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants